<%-- ~ 通用 head, 通过title, nocache 属性设置title和是否缓存 --%>
<%-- https://github.com/h5bp/html5-boilerplate --%>
<%@ tag pageEncoding="UTF-8" body-content="scriptless" isELIgnored="false" trimDirectiveWhitespaces="true" %>
<%@ attribute name="title" type="java.lang.String" required="false" %>
<%@ attribute name="description" type="java.lang.String" required="false" %>
<%@ attribute name="bodyClass" type="java.lang.String" required="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% request.setAttribute("ctx", request.getContextPath());%>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>${title}</title>
    <meta name="keywords" content="${keywords}">
    <meta name="description" content="${description}">

    <!-- favicon.ico -->
    <link rel="icon" type="image/x-icon" href="${ctx}/favicon.ico">
    <link rel="shortcut icon" href="${ctx}/favicon.ico">

    <link rel="stylesheet" href="${ctx}/css/normalize.css">
    <link rel="stylesheet" href="${ctx}/css/main.css">
    <link rel="stylesheet" href="${ctx}/css/boxy.css">
    <script type="text/javascript">window.contextPath = "${ctx}"</script>
    <script type="text/javascript" src="${ctx}/js/lib/modernizr-2.8.3.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <%-- 将标签中内容插入 --%>
    <jsp:doBody />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<%--<body <c:if test="${index eq true}">class="index bg"</c:if>>--%>
<body class="${bodyClass}">
<!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <decode href="http://browsehappy.com/">upgrade your browser</decode> to improve your experience.</p>
<![endif]-->
